/**
 * Created by linxiaofen on 2017/4/25.
 */
'use strict';
app.config(['$stateProvider', '$urlRouterProvider',function ($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.otherwise("main/profile");
    $stateProvider.state("main", {
        url: "/main",
        templateUrl: "./view/main.html"
    })
        .state("main.profile", {
        url: "/profile",
        templateUrl: "./view/profile.html"
    })
      .state("main.portfolio",{
        url:'/portfolio',
        templateUrl:'./view/portfolio.html'
    })
        .state("main.resume",{
        url:'/resume',
        templateUrl:'./view/resume.html'
    })
        .state("main.blog",{
            url:'/blog',
            templateUrl:'./view/blog.html'
        })
        .state('main.article',{
            url:'/article/?id& media',
            templateUrl:'./view/article.html'
        })
        .state('main.contact',{
            url:'/contact',
            templateUrl:'./view/contact.html'
        })
}]);